package cn.mxh.pethspt.dao;

import cn.mxh.pethspt.entity.Ding;
import cn.mxh.pethspt.entity.JiuZhen;

import java.util.List;

public interface DingDao {
    /**
     * 添加交易订单
     * @param ding
     * @return
     */
    public int add(Ding ding) throws Exception;

    /**
     * 修改订单详情
     * @param ding
     * @return
     * @throws Exception
     */
    public int update(Ding ding) throws Exception;

    /**
     * 查询所有订单
     * @return
     */
    public List<Ding> getAll() throws Exception;

    /**
     * 根据订单id查询金额
     * @param dingId
     * @return
     */
    public Ding getDingBydingId(Integer dingId) throws Exception;

}
